import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import layout from '@/components/layout'
import logMerage from '@/components/logMerage'
import examine from '@/components/examine'
import record from '@/components/record'
import usermanage from '@/components/usermanage'
import bigData from '@/components/bigData'
import website from '@/components/websiteData'
import register from '@/components/register'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'layout',
      component:layout,
      redirect:"/usermanage",
      children:[
        {
          path:'/logMerage',
          name:"logMerage",
          component:logMerage
        },
        {
          path:'/examine',
          name:"examine",
          component:examine
        },
        {
          path:'/record',
          name:"record",
          component:record
        },
        {
          path:'/usermanage',
          name:"usermanage",
          component:usermanage
        },
        {
          path:'/bigData',
          name:"bigData",
          component:bigData
        },
        {
          path:"/website",
          name:"website",
          component:website
        }
      ]
    },
    {
      path:'/login',
      name:'login',
      component:login
    },
    {
      path:'/register',
      name:'register',
      component:register
    }
  ]
})
